#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: /data/bkce/open_paas/paas/templates_module/app/list.html.py
# Compiled at: 2018-01-02 11:22:53
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514863373.652643
_enable_loop = True
_template_filename = '/data/bkce/open_paas/paas/templates/app/list.html'
_template_uri = 'app/list.html'
_source_encoding = 'utf-8'
_exports = [u'right_content']

def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]


def _mako_generate_namespaces(context):
    pass


def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base_center.html', _template_uri)


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)

        def right_content():
            return render_right_content(context._locals(__M_locals))

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        JS_SUFFIX = context.get('JS_SUFFIX', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'

')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'right_content'):
            context['self'].right_content(**pageargs)
        __M_writer(u'

<!--  分页的样式文件    -->
<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/pagination.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'"></script>
<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/paas_app.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'"></script>
<script>
$(function(){
   // 查询app列表
  $("#j_display_all_app").click();
});
</script>
')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_right_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)

        def right_content():
            return render_right_content(context)

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'
    <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'css/paas_app.')
        __M_writer(unicode(CSS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'">
    <!-- 右侧内容 start -->
    <div class="">
        <div class="app_center">
            <div class="box-info full">
                <div class="main-header"><span>我的应用</span>
                    <a class="btn btn-green btn-min-w f_r mr10" href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'app/create/">创建应用</a>
                </div>
                <!--     工具栏 start    -->
                <div class="data-table-toolbar">
                    <!--         搜索 start             -->
                    <div class="row">
                      <div class="col-md-10" style="padding-left:5px;">
                        <div id="seacher_input" class="form-inline" style="margin-top:-5px;display: none;">
                          <input id="search_app" type="text" class="form-control" style="width:250px" placeholder="搜索：按名称、编码、创建者" >
                          <span class="close" id="close_span" style="display:none;position:absolute;left:231px;margin-top:16px;cursor: pointer;background-color:#bbbbbb;border-radius:10px;text-align:center;width:22px;height:22px">×</span>
                          <select class="form-control"  id="set_hide_outline" style="">
                            <option value="0" selected>隐藏已下架应用</option>
                            <option value="1">显示已下架应用</option>
                          </select>
                          <button id="j_display_all_app"  class="btn btn-azure btn-min-w" style="margin-top:9px;height:34px">搜索</button>
                        </div>
                      </div>
                    </div>
                    <!--     搜索 end    -->
                </div>
                <!--     工具栏 end    -->
                <div class="table-responsive">
                  <!--     app table -->
                  <div id="table_app">
                  </div>

                  <!--     app 总数展示    -->
                  <div class="col-md-2" style="padding-left:0px;">
                    <div id="app_num_div" class="form-inline mt10" style="display:none;">共 <strong style="color:red;" id="app_num"></strong> 个应用</div>
                  </div>

                  <!--     分页 开始    -->
                  <div class="f_r form-inline mt10" id="page">
                    <div id="pagination_id" class="btn-group"></div>
                  </div>
                  <!--    分页 结束      -->
                </div>
            </div>
        </div>
    </div>
    <!-- 右侧内容 end -->
')
        return ''
    finally:
        context.caller_stack._pop_frame()
